# Establishing Themes and Palettes ####
library(ggplot2); library(RColorBrewer)
ParasitePalettes<-c("PuRd","PuBu","BuGn","Purples","Oranges")
ParasiteColours<-c("#DD1c77","#2B8CBE","#2CA25F",brewer.pal(5,"Purples")[4],brewer.pal(5,"Oranges")[4])
AlberPalettes <- c("YlGnBu","Reds","BuPu", "PiYG")
AlberColours <- sapply(AlberPalettes, function(a) RColorBrewer::brewer.pal(5, a)[4])
AlberColours[length(AlberColours)+1:2] <- RColorBrewer::brewer.pal(11, AlberPalettes[[4]])[c(2,10)]
AlberTheme <- theme_bw() +
theme(axis.title.x = element_text(vjust = -0.35,
size = 12,
colour = "black"),
axis.title.y = element_text(vjust = 1.2,
size = 12,
colour = "black"),
strip.background = element_rect(fill = "white", colour = "dark grey"))
theme_set(AlberTheme)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.